package com.yanqu.road.entity.zhaoshang;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Objects;

@FieldTypeAnnotation(tableName = "t_u_zs_rob_times")
public class ZsRobTimes extends DataObject {
    @FieldTypeAnnotation(select = true,update = true)
    private long userId;
    @FieldTypeAnnotation(update = true)
    private long robUserId;
    @FieldTypeAnnotation
    private int robTimes;
    @FieldTypeAnnotation
    private long lastResetTime;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (!Objects.equals(this.userId, userId)) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getRobUserId() {
        return robUserId;
    }

    public void setRobUserId(long robUserId) {
        if (!Objects.equals(this.robUserId, robUserId)) {
            this.robUserId = robUserId;
            setUpdateOption();
        }
    }

    public int getRobTimes() {
        return robTimes;
    }

    public void setRobTimes(int robTimes) {
        if (!Objects.equals(this.robTimes, robTimes)) {
            this.robTimes = robTimes;
            setUpdateOption();
        }
    }

    public long getLastResetTime() {
        return lastResetTime;
    }

    public void setLastResetTime(long lastResetTime) {
        if (!Objects.equals(this.lastResetTime, lastResetTime)) {
            this.lastResetTime = lastResetTime;
            setUpdateOption();
        }
    }
}
